#pragma once

#include "../utils/sqliter3/sqlite3.h"
#include "../utils/jsoncpp/json.h"
class CSqlData {
public:
	CSqlData();
	~CSqlData();

	bool TakeUserInfo(const std::string& access, const std::string& password, Json::Value& root);
	bool TakePermissions(const std::string& access, Json::Value& root);

	bool TakeConf(const char* access, const char* key, Json::Value& root);
	bool TakePorcess(const char* condition, const char* key, Json::Value& root);
	bool TakeNetwork(const char* condition, const char* key, Json::Value& root);
	bool TakeSuffix(const char* condition,const char*key, Json::Value& root);
	
private:
	char m_strDBPath[260];
	sqlite3* m_db;
};